CC = g++
#CFLAGS = -c -Wall -ggdb -I../include
CFLAGS = -c -Wall -O3 -I../include
TARGET = libmylib.a
SRCS = \
sdl_surface.cpp \
sdl_auxiliary.cpp \
sdl_event.cpp \
sdl_timer.cpp \
translate.cpp \
camera.cpp \
triangle.cpp
OBJS = $(SRCS:.cpp=.o)

all: $(SRCS) $(TARGET)

$(TARGET): $(OBJS) 
	$(AR) $(ARFLAGS) $@ $?

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@

clean:
	$(RM) $(OBJS)

dist-clean: clean
	$(RM) $(TARGET)
